const ACCESS_TOKEN = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJlMDIzZWExMi03MWE5LTRjMDYtYTkzNy1lZDY3NzQ0N2RjYWIiLCJpZCI6MTkwOTg0LCJpYXQiOjE3MDU5NzcyNDF9.HOCZWrfZBAjuPyx9RcdsaLkkLoJXiad0REI1VAvNpog';

const DEFAULT_CONTAINER_DOM_ID = 'cesiumContainer';

const TILES_BASE = process.env.VUE_APP_3D_TILES;

const MODEL_PATH = {
    // full path of bund models
    BUND: '/bund-current-model/bund.json',
    // full path of old government models
    OLD_GOVERNMENT_OUTER_BOX: '/160-old-government-model/outer-box/outer.json',
    OLD_GOVERNMENT_INNER_FLOOR: '/160-old-government-model/inner-floor/inner.json',
    // full path of indoor models
    INDOOR_OUTER_BOX: '/indoor-model/outer-box/tileset.json',
    INDOOR_INNER_DECORATION: '/indoor-model/inner-decoration/tileset.json',
}

const VISUAL_LEVEL = {
    OUTER_SPACE: 0,
    GLOBE_SURFACE: 1,
    FEATURE_FOCUS: 2,
    INNER_FLOOR: 3,
    INNER_ROOM: 4,
}

const VISUAL_LEVEL_DESCRIPTIONS = ['区域选择', '建筑集群', '单体建筑', '楼层分布', '房间聚焦', '室内布局'];

const VISUAL_LEVEL_ICONS = ['el-icon-place', 'el-icon-office-building', 'el-icon-school', 'el-icon-film', 'el-icon-house', 'el-icon-table-lamp'];

const CLIPPING_PLANE_NUM = {
    GLOBE_SURFACE_NUM: 4,
    INNER_FEATURE_NUM: 6,
    checkNum(num) {
        return num === this.GLOBE_SURFACE_NUM || this.INNER_FEATURE_NUM;
    }
}

const PLANE_NAME_OF_BOX =  [
    'FRONT',
    'END',
    'LEFT',
    'RIGHT',
    'TOP',
    'BOTTOM',
]

const CAMERA_VISIBILITY = 10;

const FOCUS_AROUND_VISIBILITY = 100;

const CUSTOM_CAMERA_PROPORTION_FROM_SPACE = 10;

const CUSTOM_CAMERA_MOVING_FACTOR = 0.05;

const DEFAULT_AVERAGE_FLOOR_HEIGHT = 3;

export default {
    ACCESS_TOKEN,
    DEFAULT_CONTAINER_DOM_ID,
    TILES_BASE,
    MODEL_PATH,
    VISUAL_LEVEL,
    CLIPPING_PLANE_NUM,
    PLANE_NAME_OF_BOX,
    CAMERA_VISIBILITY,
    FOCUS_AROUND_VISIBILITY,
    VISUAL_LEVEL_DESCRIPTIONS,
    VISUAL_LEVEL_ICONS,
    CUSTOM_CAMERA_PROPORTION_FROM_SPACE,
    CUSTOM_CAMERA_MOVING_FACTOR,
    DEFAULT_AVERAGE_FLOOR_HEIGHT,
}